import 'package:arco_flutter/arco_flutter.dart';
import 'package:flutter/material.dart';

import 'package:get/get.dart';

import '../controllers/button6_controller.dart';

///禁用状态
class Button6View extends GetView<Button6Controller> {
    const Button6View({super.key});
    @override
    Widget build(BuildContext context) {
        return const Scaffold(
            body: Center(
                child: Column(
                    mainAxisAlignment: MainAxisAlignment.center,
                    children: [
                        Wrap(
                            spacing: 10,
                            crossAxisAlignment: WrapCrossAlignment.center,
                            children: [
                                AButton(
                                    type: AButtonType.primary,
                                    disabled: true,
                                    child: Text('Primary'),
                                ),
                                AButton(
                                    type: AButtonType.secondary,
                                    disabled: true,
                                    child: Text('Secondary'),
                                ),
                                AButton(
                                    type: AButtonType.dashed,
                                    disabled: true,
                                    child: Text('Dashed'),
                                ),
                                AButton(
                                    type: AButtonType.outline,
                                    disabled: true,
                                    child: Text('Outline'),
                                ),
                                AButton(
                                    type: AButtonType.text,
                                    disabled: true,
                                    child: Text('Text'),
                                ),
                            ],
                        ),
                        SizedBox(height: 10),
                        Wrap(
                            spacing: 10,
                            crossAxisAlignment: WrapCrossAlignment.center,
                            children: [
                                AButton(
                                    type: AButtonType.primary,
                                    status: AButtonStatus.success,
                                    disabled: true,
                                    child: Text('Primary'),
                                ),
                                AButton(
                                    type: AButtonType.secondary,
                                    status: AButtonStatus.success,
                                    disabled: true,
                                    child: Text('Secondary'),
                                ),
                                AButton(
                                    type: AButtonType.dashed,
                                    status: AButtonStatus.success,
                                    disabled: true,
                                    child: Text('Dashed'),
                                ),
                                AButton(
                                    type: AButtonType.outline,
                                    status: AButtonStatus.success,
                                    disabled: true,
                                    child: Text('Outline'),
                                ),
                                AButton(
                                    type: AButtonType.text,
                                    status: AButtonStatus.success,
                                    disabled: true,
                                    child: Text('Text'),
                                ),
                            ],
                        ),
                        SizedBox(height: 10),
                        Wrap(
                            spacing: 10,
                            crossAxisAlignment: WrapCrossAlignment.center,
                            children: [
                                AButton(
                                    type: AButtonType.primary,
                                    status: AButtonStatus.warning,
                                    disabled: true,
                                    child: Text('Primary'),
                                ),
                                AButton(
                                    type: AButtonType.secondary,
                                    status: AButtonStatus.warning,
                                    disabled: true,
                                    child: Text('Secondary'),
                                ),
                                AButton(
                                    type: AButtonType.dashed,
                                    status: AButtonStatus.warning,
                                    disabled: true,
                                    child: Text('Dashed'),
                                ),
                                AButton(
                                    type: AButtonType.outline,
                                    status: AButtonStatus.warning,
                                    disabled: true,
                                    child: Text('Outline'),
                                ),
                                AButton(
                                    type: AButtonType.text,
                                    status: AButtonStatus.warning,
                                    disabled: true,
                                    child: Text('Text'),
                                ),
                            ],
                        ),
                        SizedBox(height: 10),
                        Wrap(
                            spacing: 10,
                            crossAxisAlignment: WrapCrossAlignment.center,
                            children: [
                                AButton(
                                    type: AButtonType.primary,
                                    status: AButtonStatus.danger,
                                    disabled: true,
                                    child: Text('Primary'),
                                ),
                                AButton(
                                    type: AButtonType.secondary,
                                    status: AButtonStatus.danger,
                                    disabled: true,
                                    child: Text('Secondary'),
                                ),
                                AButton(
                                    type: AButtonType.dashed,
                                    status: AButtonStatus.danger,
                                    disabled: true,
                                    child: Text('Dashed'),
                                ),
                                AButton(
                                    type: AButtonType.outline,
                                    status: AButtonStatus.danger,
                                    disabled: true,
                                    child: Text('Outline'),
                                ),
                                AButton(
                                    type: AButtonType.text,
                                    status: AButtonStatus.danger,
                                    disabled: true,
                                    child: Text('Text'),
                                ),
                            ],
                        )
                    ],
                ),
            ),
        );
    }
}
